﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SM.Common.VPowers.IIs
{
    /// <summary>
    /// 用于创建IIS站点的对象
    /// </summary>
    [Serializable]
    public class IIsBinding
    {
        string siteIP;
        /// <summary>
        /// 站点IP
        /// </summary>
        public string SiteIP
        {
            get { return siteIP; }
            set { siteIP = value; }
        }

        string comment;
        /// <summary>
        /// 站点名称
        /// </summary>
        public string Comment
        {
            get { return comment; }
            set { comment = value; }
        }

        string hostName;
        /// <summary>
        /// 站点主机头
        /// </summary>
        public string HostName
        {
            get { return hostName; }
            set { hostName = value; }
        }

        string webPath;
        /// <summary>
        /// 站点主目录
        /// </summary>
        public string WebPath
        {
            get { return webPath; }
            set { webPath = value; }
        }

        string port;
        /// <summary>
        /// 站点端口号
        /// </summary>
        public string Port
        {
            get { return port; }
            set { port = value; }
        }

        /// <summary>
        /// 其他域名列表（端口号统一为80）
        /// </summary>
        public List<string> OtherDomains { get; set; }
    }
}
